/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import { mock } from 'mockjs';

export default {
  'POST /jdk/AreaBasePrice/getList': (req: Request, res: Response) => {
    return res.json(
      mock({
        code: 0,
        msg: 'succee',
        data: {
          'list|20': [
            {
              id: '@id',
              'base_price|1-100': 20,
              'limit_type|1': [0, 1],
              brand: 'sftc',
              brand_cn: '顺丰同城',
              area_code_list: [['310000000000', '310100000000', '310101000000']],
              area_name_list: [
                ['上海市', '上海市', '长宁区'],
                ['上海市', '上海市', '徐汇区'],
              ],
              operator: '@phone',
              remark: '@ctitle',
              created_at: '@datetime',
              updated_at: '@datetime',
            },
          ],
        },
      }),
    );
  },
  'POST /jdk/AdminBasePrice/create': (req: Request, res: Response) => {
    return res.json(
      mock({
        code: 0,
        msg: 'succee',
        data: [],
      }),
    );
  },
  'POST /jdk/AdminBasePrice/modify': (req: Request, res: Response) => {
    return res.json(
      mock({
        code: 0,
        msg: 'succee',
        data: [],
      }),
    );
  },
  'POST /jdk/AdminBasePrice/remove': (req: Request, res: Response) => {
    return res.json(
      mock({
        code: 0,
        msg: 'succee',
        data: [],
      }),
    );
  },
};
